package com.zr.serviceImpl;

import com.zr.dao.TealsjlDaoljc;
import com.zr.daoImpl.TealsjlDaoImplljc;
import com.zr.service.TealsjlServiceljc;

import net.sf.json.JSONObject;

public class TealsjlServiceImplljc implements TealsjlServiceljc{
	//通过教师姓名查找申请处理记录
	TealsjlDaoljc t = new TealsjlDaoImplljc();
	@Override
	public JSONObject findTeaJLByTname(int page, int rows, String tname) {
		JSONObject j = new JSONObject();
		j.put("total", t.countAllJLByTname(tname));
		j.put("rows", t.findTeaJLByTname(page, rows, tname));
		return j;
	}
	//通过教师id查找教师姓名
	@Override
	public String findTnameBytid(int tid) {
		
		return t.findTnameBytid(tid);
	}
	

}
